package org.ermannofranco.genericdaojdbc.user.model;

import net.ermannofranco.genericdaojdbc.model.Entity;
import net.ermannofranco.genericdaojdbc.model.annotation.IdColumn;


@IdColumn(column = "ADDRESS_ID", generated = true)
public class Address extends Entity<Long> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8264407853580100615L;

	private String address;

	private String city;

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(" id: ").append(getId()).append(" - city: ").append(city)
				.append(" - address: ").append(address);
		return sb.toString();
	}
}
